Joint Optimization in Edge-Cloud Continuum for Federated Unsupervised Person Re-Identification